import java.util.Scanner;

public class 小红的排列构造 {
    //https://www.nowcoder.com/practice/2b0a9318cc0740d1a78eec06162e7bea?tpId=376&tqId=10097249&ru=/exam/oj&qru=/ta/15-days-help/question-ranking&sourceUrl=%2Fexam%2Foj%3Fpage%3D1%26tab%3D%25E7%25AE%2597%25E6%25B3%2595%25E9%259D%25A2%25E8%25AF%2595%26topicId%3D376
    //这一题真的吓到我了, 自己写了几个发现并没有那么难, 但是很吓人
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        if(n == 1 || n == 2){
            System.out.println(-1);
        }else{
            StringBuilder sb = new StringBuilder("3 2 1");
            for(int i = 4;i <= n;i++){
                //使用打印字符串的方式要更加方便, 我开始是使用sout打印, io操作太多, 速度很慢, 换成快读模板应该会快一点
                sb.append(" ");
                sb.append(i);
            }
            System.out.println(sb.toString());
        }
    }
}
